JavaScript

{grid.object}loadJavascript Method

Syntax

{grid.Object}.loadJavascript(javascript)

Arguments

javascriptString

A string of javascript to be loaded.

Description

Loads a string of Javascript code (typically function definitions).

The javascript code that is supplied as the function argument must be 'prepared' by removing removing all CRLF characters and by escaping any special characters.
{grid.Object}.loadJavascript('function newJs(){ x=1;y=2;}');

See Also